package com.richfit.cuba.modular.common;

import java.util.Calendar;

public class CommonUtil {

	/**
	 * 获取间隔的年份数值
	 * @param intervalYear 间隔的年份，正数往后，负数往前算
	 * @return 年份数值
	 */
	public static int getEffectiveYear(int intervalYear) {
		Calendar calendar = Calendar.getInstance();
		calendar.add(Calendar.YEAR, intervalYear);
		return calendar.get(Calendar.YEAR);
	}
}
